#1
car = 'xiao mi su7'
print(f"Is car == 'xiao mi su7'?I predict True.")
print(car == 'xiao mi su7')

print(f"\nIs car == 'subaru'? I predict False.")
print(car == 'subaru')

#2
book = 'python'
print(f"\nIs book == 'python'?I predict True.")
print(book == 'python')

print(f"\nIs book == 'c'? I predict False.")
print(book == 'c')

#3
age = 10
print(f"\nIs age == 10?I predict True.")
print(age == 10)

print(f"\nIs age == 15? I predict False.")
print(age == 15)

#4
temperature = 23
print(f"\nIs temperature >= 20?I predict True.")
print(temperature == 25)

print(f"\nIs temperature <= 25? I predict False.")
print(temperature == 26)

#5
is_raining = False
has_umbrella = True
print(f"\nIs is_raining or has_umbrella'?I predict True.")
print(is_raining or has_umbrella)

print(f"\nIs is_raining and has_umbrella? I predict False.")
print(is_raining and has_umbrella)

#6
x = 10
y = 20
print(f"\nIs x < y?I predict True.")
print(x < y)

print(f"\nIs x > y?I predict False.")
print(x > y)

#7
fruits = ['apple', 'banana', 'pear']
print(f"\nIs 'apple' in fruits? I predict True.")
print('apple' in fruits)

print(f"\nIs 'grape' in fruits? I predict False.")
print('grape' in fruits)

#8
print(f"\nIs car != 'subaru' and age < 30? I predict False.")
print(car != 'subaru' and age > 30)

print(f"\nIs book.endswith('on')? I predict True.")
print(book.endswith('on'))

# 9
username = "User123"
print(f"\nIs username == 'user123'? I predict False.")
print(username == 'user123')

print(f"\nIs len(username) >= 5? I predict True.")
print(len(username) >= 5)

#10
def is_even(n):
    return n % 2 == 0

number = 7
print(f"\nIs {number} even? I predict False.")
print(is_even(number))

number = 8
print(f"\nIs {number} even? I predict True.")
print(is_even(number))